cmake_minimum_required(VERSION 2.6)
# create proj
project(testopencv)
# c++ 11
set(CMAKE_CXX_FLAGS "-std=c++11")
 
find_package(OpenCV 4.7.0 REQUIRED) 	# find opencv4.7 installed path
include_directories(OpenCV_INCLUDE_DIRS)	# load opencv header files
add_executable(testopencv opencv.cpp)	# create exe file
target_link_libraries(testopencv ${OpenCV_LIBS})	# link llib files to exe
